﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Ext.Master" AutoEventWireup="true" CodeBehind="Menu.aspx.cs" Inherits="MVCnExt.Views.Shared.Menu" %>

<%@ Register Assembly="MVCnExt.Web.UI.Ext" Namespace="MVCnExt.Web.UI.Ext" TagPrefix="mvc" %>
<asp:Content ID="manualContent" ContentPlaceHolderID="MainContent" runat="server">
    <mvc:ExtWindow ID="borderLayout" title="Menu Example" Height="220" Width="300"
        runat="server">
        <items>            
            <mvc:ExtToolbar ID="myToolbar" Width="10em" autoHeight="true" runat="server">
                <items>
                    <mvc:ExtButton ID="myButton" runat="server" text="Menu">
                        <menu ID="buttonMenu1" runat="server">
                            <items>                                
                                <mvc:ExtMenuTextItem ID="txt3" runat="server" text="Text 3" />
                                <mvc:ExtMenuSeparator ID="separator2" runat="server" />
                                <mvc:ExtMenuTextItem ID="txt4" runat="server" text="Text 4" />
                                <mvc:ExtDateMenu ID="date1" runat="server" text="Choose Date" />
                                <mvc:ExtColorMenu ID="color2" runat="server" text="Choose Color" />
                            </items>                            
                        </menu>
                    </mvc:ExtButton>                    
                    <mvc:ExtSplitButton ID="split1" runat="server" text="Split Menu">
                        <menu ID="splitMenu1" runat="server">
                            <items>
                                <mvc:ExtMenuTextItem ID="txt5" runat="server" text="Text 5" />
                                <mvc:ExtMenuTextItem ID="ExtMenuTextItem1" runat="server" text="Text 5" />
                            </items>
                        </menu>
                    </mvc:ExtSplitButton>
                </items>                                
            </mvc:ExtToolbar>
        </items>
    </mvc:ExtWindow>
     <mvc:ExtOnReady ID="windowOnReady" runat="server">
        <script>
            borderLayout.show();
        </script>
    </mvc:ExtOnReady>
</asp:Content>
